package com.caipos.actor.common.data;

import com.caipos.actor.common.data.id.EntityId;
import com.caipos.actor.common.data.id.EventId;
import com.caipos.actor.common.data.id.TenantId;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;

@Data
public class EventInfo extends BaseData<EventId> {

    private TenantId tenantId;
    private String type;
    private String uid;
    private EntityId entityId;
    private transient JsonNode body;

    public EventInfo() {
        super();
    }

    public EventInfo(EventId id) {
        super(id);
    }

    public EventInfo(EventInfo event) {
        super(event);
    }

    @Override
    public long getCreatedTime() {
        return super.getCreatedTime();
    }
}
